# 导入flask
from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy

# 实例化Flask
app = Flask(__name__)

app.config.from_object(Config)

db = SQLAlchemy(app)

class Order(db.Model):
    __tablename__ = 'order'
    id = db.Column(db.Integer,primary_key=True,autoincrement=True)
    name = db.Column(db.String(30),unique=True)
    price = db.Column(db.Float,default=0)

db.create_all()




if __name__ == '__main__':
    app.run()
    
